<!DOCTYPE html>
<html lang="en">

<include file="CommonSidebar:common-head"/>
<link rel="stylesheet" href="__ROOT__/Application/Home/Public/css/common.css">
<link href="__ROOT__/Application/Home/Public/css/jquery.datetimepicker.css" rel="stylesheet">
<body>

<div id="wrapper">

    <!-- Navigation -->
    <include file="CommonSidebar:common-navbar"/>

    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">更新结果</h1>
            </div>
            <h2 style="color: #009900">共更新商品数:{$allnum[0]['num']}</h2>
            <h2 style="color: #00d6b2">共更新成功商品数:{$successnum[0]['num']}</h2>
            <h2 style="color: red">共更新失败商品数:{$errornum[0]['num']}</h2>

        </div>
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        更新失败列表
                    </div>
                   <!-- /.panel-heading -->
                    <div class="panel-body">
                        <div class="dataTable_wrapper">
                            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                <tr>
                                    <th width="6%" style="text-align:center">有赞商品别名id</th>
                                    <th width="25%" style=" text-align:center">库存</th>
                                    <th width="7%" style=" text-align:center">价格</th>
                                    <th width="7%" style=" text-align:center">失败原因</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="errordata" item="v" key="k">
                                    <tr class="odd gradeX">
                                        <td>{$v.alias}</td>
                                        <td>{$v.kc}</td>
                                        <td>{$v.jg}</td>
                                        <td>{$v.msg}</td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                        </div>
                        <!-- /.table-responsive -->
                    </div>
                    <!-- /.panel-body -->
                </div>
                <!-- /.panel -->
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
    </div>
    <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->


<include file="CommonSidebar:common-script"/>
<script src="__ROOT__/Application/Home/Public/js/jquery.datetimepicker.js"></script>
<!-- DataTables JavaScript -->
<script src="__ROOT__/Application/Home/Public/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
<script src="__ROOT__/Application/Home/Public/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="__ROOT__/Application/Home/Public/dist/js/sb-admin-2.js"></script>
<!-- Page-Level Demo Scripts - Tables - Use for reference -->
<script>
    $(document).ready(function () {
        $('#dataTables-example').DataTable({
            responsive: true
        });
    });
</script>
</body>

</html>
